package com.yaoxun.bored.model.sys.user;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 用于接收登录参数
 * @author Loren
 * @createTime 2018年1月31日 下午3:04:18
 */
public class LoginUser {
	
	@NotEmpty(message="请填写账号")
	@Size(min=5, max=18, message="账号长度在{min} 到 {max}之间")
	private String account;
	
	@NotEmpty(message="请输入密码")
	@Size(min=6, max=18, message="密码长度在{min} 到 {max}之间")
	private String pwd;
	
	@Size(min=5, max=5, message="验证码长度为{min}")
	private String vcode;

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getVcode() {
		return vcode;
	}

	public void setVcode(String vcode) {
		this.vcode = vcode;
	}

	@Override
	public String toString() {
		return "LoginUser [account=" + account + ", pwd=" + pwd + ", vcode=" + vcode + "]";
	}
	
}
